spinbutton: Bring back auto-sizing
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Jun 2020 13:12:49 +0000 (09:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Jun 2020 14:55:30 +0000 (10:55 -0400)
commitb046c8d4ad62ac5eb993f3b52bb26f72642e3eaf
tree51fabafd5a9a263d85f33fc1113d71c526b13fb1
parent5e69181d8dc5ff336adf1461bca89dedd9f48272
spinbutton: Bring back auto-sizing

We lost this when GtkSpinButton was first ported
to the new editable regime, and then the GtkBoxLayout.

Bring it back, but without text measurement, by overriding
width-chars for the GtkText inside, and only do it if
GtkSpinButton::width-chars is unset (ie -1).

Also adjust the documentation slightly to point out
how auto-sizing can be turned off.
gtk/gtkspinbutton.c